/**
 * @Author:  renyc
 * @Date: 2023年1月6日21:59:08
 */

import * as Cesium from "cesium/Cesium";
import Viewer from "../viewer/Viewer";
// import MarsEllipsoid from "./MarsEllipsoid";

/**
 * @class Mars
 * 
 * @description 火星类
 * @extends Viewer
 */
class Mars extends Viewer{
    constructor(container, options){
        if(!options){
            options = {};
        }

        //https://tharsis.gsfc.nasa.gov/geodesy.html
        //let ellipsoid = new Cesium.Ellipsoid(6378137.0, 6378137.0, 6356752.3142451793);
        let ellipsoid = new Cesium.Ellipsoid(3396200, 3396200, 3379384.5);

        options.globe = new Cesium.Globe(ellipsoid);
        
        //options.globe = MarsEllipsoid;
        //options.globe = new Cesium.Ellipsoid(6378137.0, 6378137.0, 6356752.3142451793)
        super(container, options);
    }
}

export default Mars
